/**
@file EasyLog.h

@brief 

@details
Copyright (c) 1998 - 2012 Tencent. All Rights Reserved.

@author		admin(admin@tencent.com)
@version	1.0
@date		2012/09/20

history:
<PRE>
History ID	:	1
Author    	:	admin(admin@tencent.com)
DateTime	:	2012/09/20
Description :	Create
</PRE>
*/

#ifndef __EASYLOG_H__
#define	__EASYLOG_H__

// STANDARD INCLUDES
// SYSTEM INCLUDES
// APPLICATION INCLUDES
#include "sqlite3db.h"
#include "ITask.h"
#include "EasyThread.h"
// USING NAMESPACES
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS

/** 
@class CLog2Sqlite
@brief 
@details 
*/
class CLog2Sqlite:public ITask
{
public:
	/**
	Description:	Default constructor
	@exception		none
	*/
	CLog2Sqlite(unsigned int id);

	/**
	Description:	Destructor
	*/
	virtual ~CLog2Sqlite();

	virtual bool init() ;
	virtual bool run() ;
	virtual void uninit() ;


protected:
	
private:
	CEasyThread* m_pThread;
	CSqlite3Conn* m_pSql3Conn;
	static EASYTHREAD_DECLARE( WorkThreadFunc)(VOID *pArg);


}; //end CLog2Sqlite


#endif	//__EASYLOG_H__

